import request from "@/utils/request";

// 查询用户信息列表
export function listprice(query) {
  return request({
    url: "/ds/price/list",
    method: "get",
    params: query,
  });
}

// 查询用户信息详细
export function getprice(uid) {
  return request({
    url: "/ds/price/" + uid,
    method: "get",
  });
}

// 新增用户信息
export function addprice(data) {
  return request({
    url: "/ds/price",
    method: "post",
    data: data,
  });
}

// 修改用户信息
export function updateprice(data) {
  return request({
    url: "/ds/price",
    method: "put",
    data: data,
  });
}

// 删除用户信息
export function delprice(uid) {
  return request({
    url: "/ds/price/" + uid,
    method: "delete",
  });
}

// 快速登录
export function fastLogin(uid) {
  return request({
    url: "/ds/price/login?uid=" + uid,
    method: "get",
  });
}

// 导出用户信息
export function exportprice(query) {
  return request({
    url: "/ds/price/export",
    method: "get",
    params: query,
  });
}
/**
 * 查询用户团队
 * @param {*} query
 * @returns
 */
export const priceTeam = (query, headers) => {
  return request({
    headers,
    url: "/ds/price/priceTeam",
    method: "get",
    params: query,
  });
};
